|
WRITE DIRBLOCK
This command will write an entire directory to a pack file.
WRITE DIRBLOCK File Number, Folder to Create
File Number
Integer
The file number
Folder to Create
String
The new file string
This command does not return a value.
A pack file is like a normal file you create yourself using the OPEN and CLOSE commands, but has the additional feature that as well as storing numerics and strings, you can also store entire files and directories.
cls
open to write 1,"data.dat"
if file open(1)=1
write dirblock 1,"pathfile.dat"
endif
close file 1
wait 1000*8
open to read 1,"pathfile.dat"
if file open(1)=1
read dirblock 1,"pathfile.dat"
endif
close file 1
do
loop
end
FILE Commands Menu
Index
|